
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>私库搭建 · 《前端学习笔记》</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="XiaoChen">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-ancre-navigation/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Web团队建设--自定义脚手架.html" />
    
    
    <link rel="prev" href="Web前端开发规范.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">前言</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Android</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../Android/Android 多包名打包应用.html">
            
                <a href="../Android/Android 多包名打包应用.html">
            
                    
                    Android 多包名打包应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../Android/Android UI美化之 shape的使用及其属性总结.html">
            
                <a href="../Android/Android UI美化之 shape的使用及其属性总结.html">
            
                    
                    Android UI美化之 shape的使用及其属性总结
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">ReactNative</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../ReactNative/CodePush 热更新配置及使用.html">
            
                <a href="../ReactNative/CodePush 热更新配置及使用.html">
            
                    
                    CodePush 热更新配置及使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../ReactNative/已有Android工程 集成React Native.html">
            
                <a href="../ReactNative/已有Android工程 集成React Native.html">
            
                    
                    已有Android工程 集成React Native
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Egret</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../Egret/Egret 白鹭引擎参考资料.html">
            
                <a href="../Egret/Egret 白鹭引擎参考资料.html">
            
                    
                    Egret 白鹭引擎参考资料
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../Egret/EGER PRO.html">
            
                <a href="../Egret/EGER PRO.html">
            
                    
                    EGER PRO
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../Egret/Egret 寻路.html">
            
                <a href="../Egret/Egret 寻路.html">
            
                    
                    Egret 寻路
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">工具</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../Tools/homebrew 使用.html">
            
                <a href="../Tools/homebrew 使用.html">
            
                    
                    homebrew 使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../Tools/git 使用.html">
            
                <a href="../Tools/git 使用.html">
            
                    
                    git 使用
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">小程序</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="../MiniApp/Atom 完美支持 WePY 小程序开发.html">
            
                <a href="../MiniApp/Atom 完美支持 WePY 小程序开发.html">
            
                    
                    Atom 完美支持 WePY 小程序开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="../MiniApp/Atom 插件安装慢解决方案.html">
            
                <a href="../MiniApp/Atom 插件安装慢解决方案.html">
            
                    
                    Atom 插件安装慢解决方案
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Vue</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="../Vue2/Web 前端环境搭建.html">
            
                <a href="../Vue2/Web 前端环境搭建.html">
            
                    
                    Web 前端环境搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="../Vue2/Vue 项目搭建.html">
            
                <a href="../Vue2/Vue 项目搭建.html">
            
                    
                    Vue 项目搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="../Vue2/初识 VueCli 3.html">
            
                <a href="../Vue2/初识 VueCli 3.html">
            
                    
                    初识 VueCli 3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="../Vue2/使用 VueCli 3.html">
            
                <a href="../Vue2/使用 VueCli 3.html">
            
                    
                    使用 VueCli 3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="../Vue2/VueCli 3 项目配置.html">
            
                <a href="../Vue2/VueCli 3 项目配置.html">
            
                    
                    VueCli 3 项目配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="../Vue3/Vue3探索.html">
            
                <a href="../Vue3/Vue3探索.html">
            
                    
                    初识 Vue3
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">微前端</li>
        
        
    
        <li class="chapter " data-level="8.1" data-path="../MicroApp/qiankun/">
            
                <a href="../MicroApp/qiankun/">
            
                    
                    qiankun
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">团队成长</li>
        
        
    
        <li class="chapter " data-level="9.1" data-path="Web前端开发规范.html">
            
                <a href="Web前端开发规范.html">
            
                    
                    开发规范
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="9.2" data-path="Web团队建设--npm私库搭建.html">
            
                <a href="Web团队建设--npm私库搭建.html">
            
                    
                    私库搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.3" data-path="Web团队建设--自定义脚手架.html">
            
                <a href="Web团队建设--自定义脚手架.html">
            
                    
                    脚手架搭建
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >私库搭建</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><span class="title-icon "></span><a href="#web&#x56E2;&#x961F;&#x5EFA;&#x8BBE;--npm&#x79C1;&#x5E93;&#x642D;&#x5EFA;"><b></b>Web&#x56E2;&#x961F;&#x5EFA;&#x8BBE;--npm&#x79C1;&#x5E93;&#x642D;&#x5EFA;</a></li><ul><li><span class="title-icon "></span><a href="#&#x524D;&#x8A00;"><b></b>&#x524D;&#x8A00;</a></li><li><span class="title-icon "></span><a href="#&#x79C1;&#x5E93;&#x642D;&#x5EFA;"><b></b>&#x79C1;&#x5E93;&#x642D;&#x5EFA;</a></li><ul><li><span class="title-icon "></span><a href="#&#x786C;&#x6027;&#x8981;&#x6C42;"><b></b>&#x786C;&#x6027;&#x8981;&#x6C42;</a></li><li><span class="title-icon "></span><a href="#&#x5B89;&#x88C5;-node-&#x73AF;&#x5883;"><b></b>&#x5B89;&#x88C5; Node &#x73AF;&#x5883;</a></li><li><span class="title-icon "></span><a href="#&#x5B89;&#x88C5;-verdaccio"><b></b>&#x5B89;&#x88C5; Verdaccio</a></li><li><span class="title-icon "></span><a href="#&#x542F;&#x52A8;-verdaccio"><b></b>&#x542F;&#x52A8; verdaccio</a></li><li><span class="title-icon "></span><a href="#&#x5B89;&#x88C5;-pm2"><b></b>&#x5B89;&#x88C5; pm2</a></li><li><span class="title-icon "></span><a href="#&#x4F7F;&#x7528;&#x672C;&#x5730;&#x5E93;"><b></b>&#x4F7F;&#x7528;&#x672C;&#x5730;&#x5E93;</a></li><li><span class="title-icon "></span><a href="#&#x914D;&#x7F6E;-nginx-&#x4EE3;&#x7406;"><b></b>&#x914D;&#x7F6E; Nginx &#x4EE3;&#x7406;</a></li></ul><li><span class="title-icon "></span><a href="#verdaccio-&#x8FDB;&#x9636;&#x4F7F;&#x7528;"><b></b>Verdaccio &#x8FDB;&#x9636;&#x4F7F;&#x7528;</a></li><ul><li><span class="title-icon "></span><a href="#configyaml-&#x89E3;&#x8BFB;"><b></b>config.yaml &#x89E3;&#x8BFB;</a></li><li><span class="title-icon "></span><a href="#&#x914D;&#x7F6E;&#x4FEE;&#x6539;"><b></b>&#x914D;&#x7F6E;&#x4FEE;&#x6539;</a></li></ul></ul></ul></div><a href="#web&#x56E2;&#x961F;&#x5EFA;&#x8BBE;--npm&#x79C1;&#x5E93;&#x642D;&#x5EFA;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="web&#x56E2;&#x961F;&#x5EFA;&#x8BBE;--npm&#x79C1;&#x5E93;&#x642D;&#x5EFA;"><a name="web&#x56E2;&#x961F;&#x5EFA;&#x8BBE;--npm&#x79C1;&#x5E93;&#x642D;&#x5EFA;" class="anchor-navigation-ex-anchor" href="#web&#x56E2;&#x961F;&#x5EFA;&#x8BBE;--npm&#x79C1;&#x5E93;&#x642D;&#x5EFA;"><i class="fa fa-link" aria-hidden="true"></i></a>Web&#x56E2;&#x961F;&#x5EFA;&#x8BBE;--npm&#x79C1;&#x5E93;&#x642D;&#x5EFA;</h1>
<h2 id="&#x524D;&#x8A00;"><a name="&#x524D;&#x8A00;" class="anchor-navigation-ex-anchor" href="#&#x524D;&#x8A00;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x524D;&#x8A00;</h2>
<p>&#x5728;&#x65E5;&#x5E38;&#x5DE5;&#x4F5C;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x5E73;&#x65F6;&#x4F7F;&#x7528;&#x7684;&#x4E00;&#x4E9B;&#x4F18;&#x79C0;&#x7684;&#x7C7B;&#x5E93;&#x57FA;&#x672C;&#x90FD;&#x6765;&#x6E90;&#x4E8E; <code>npm</code>&#xFF0C; &#x5982;&#x679C;&#x6211;&#x4EEC;&#x4EC5;&#x4EC5;&#x662F;&#x7B80;&#x5355;&#x7684;&#x76F4;&#x63A5;&#x4F7F;&#x7528;&#x4ED6;&#x4EEC;&#x7684;&#x529F;&#x80FD;&#x7684;&#x8BDD; <code>npm</code> &#x5176;&#x5B9E;&#x5DF2;&#x7ECF;&#x5B8C;&#x5168;&#x53EF;&#x4EE5;&#x6EE1;&#x8DB3;&#x6211;&#x4EEC;&#x7684;&#x9700;&#x6C42;&#xFF0C;&#x4F46;&#x5728;&#x6211;&#x4EEC;&#x7684;&#x5F00;&#x53D1;&#x8FC7;&#x7A0B;&#x4E2D;&#x603B;&#x4F1A;&#x51FA;&#x73B0;&#x4E00;&#x4E9B;&#x516C;&#x6709;&#x7684;&#x4E1C;&#x897F;&#x51FA;&#x73B0;&#xFF0C;&#x7C7B;&#x4F3C;&#x4E00;&#x4E9B;&#x516C;&#x5171;&#x7684;&#x7EC4;&#x4EF6;&#x3001;&#x516C;&#x5171;&#x65B9;&#x6CD5;&#x5DE5;&#x5177;&#x7C7B;&#x4E4B;&#x7C7B;&#x7684;&#xFF0C;&#x8FD9;&#x5757;&#x5982;&#x679C;&#x6211;&#x4EEC;&#x5E0C;&#x671B;&#x80FD;&#x591F;&#x65B9;&#x4FBF;&#x4F7F;&#x7528;&#x4E14;&#x964D;&#x4F4E;&#x5F00;&#x53D1;&#x6210;&#x672C;&#x7684;&#x8BDD;&#x4FBF;&#x53EA;&#x80FD;&#x628A;&#x5B83;&#x72EC;&#x7ACB;&#x4E3A;&#x4E00;&#x4E2A; <code>npm</code> &#x5E93;&#x6765;&#x4F7F;&#x7528;&#xFF0C;&#x7136;&#x540E;&#x516C;&#x53F8;&#x7684;&#x4EE3;&#x7801;&#x7684;&#x8BDD;&#x4E00;&#x822C;&#x90FD;&#x662F;&#x4E0D;&#x53EF;&#x4EE5;&#x516C;&#x5F00;&#x7684;&#xFF0C;&#x7531;&#x6B64;&#x6211;&#x4EEC;&#x642D;&#x5EFA;&#x516C;&#x53F8;&#x79C1;&#x6709;&#x5E93;&#x7684;&#x9700;&#x6C42;&#x4FBF;&#x8FC7;&#x6765;&#x4E86;&#x3002;</p>
<p>&#x642D;&#x5EFA;&#x79C1;&#x5E93;&#x7684;&#x4F18;&#x52BF;&#x4E00;&#x65B9;&#x9762;&#x53EF;&#x4EE5;&#x5B58;&#x653E;&#x516C;&#x53F8;&#x5185;&#x90E8;&#x516C;&#x5171;&#x7684;&#x4EE3;&#x7801;&#x5C01;&#x88C5;&#x548C;&#x5DE5;&#x5177;&#x6216;&#x8005;&#x5BF9;&#x7B2C;&#x4E09;&#x65B9;&#x7684;&#x5F00;&#x6E90;&#x4EE3;&#x7801;&#x505A;&#x5B9A;&#x5236;&#x5316;&#x4FEE;&#x6539;&#x548C;&#x6269;&#x5C55;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x53E6;&#x4E00;&#x65B9;&#x9762;&#x7684;&#x8BDD;&#x8FD8;&#x53EF;&#x4EE5;&#x5927;&#x5927;&#x63D0;&#x9AD8;&#x4F9D;&#x8D56;&#x5E93;&#x7684;&#x4E0B;&#x8F7D;&#x901F;&#x5EA6;&#x548C;&#x6E90;&#x7684;&#x7A33;&#x5B9A;&#x6027;&#xFF0C;&#x7C7B;&#x4F3C;&#x7684;&#x5927;&#x5BB6;&#x5E73;&#x65F6;&#x4F7F;&#x7528;&#x7684;&#x6DD8;&#x5B9D;&#x6E90;&#x5B9E;&#x9645;&#x4E0A;&#x6027;&#x8D28;&#x4E5F;&#x662F;&#x4E2A;&#x79C1;&#x5E93;&#x3002;</p>
<h2 id="&#x79C1;&#x5E93;&#x642D;&#x5EFA;"><a name="&#x79C1;&#x5E93;&#x642D;&#x5EFA;" class="anchor-navigation-ex-anchor" href="#&#x79C1;&#x5E93;&#x642D;&#x5EFA;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x79C1;&#x5E93;&#x642D;&#x5EFA;</h2>
<p>&#x9488;&#x5BF9; <code>npm</code> &#x7684;&#x79C1;&#x5E93;&#x642D;&#x5EFA;&#x5DE5;&#x5177;&#x5176;&#x5B9E;&#x662F;&#x6709;&#x5F88;&#x591A;&#x7684;&#xFF0C;&#x6709;&#x4ED8;&#x8D39;&#x7684;&#x4E5F;&#x6709;&#x514D;&#x8D39;&#x7684;&#xFF0C;&#x8FD9;&#x91CC;&#x6211;&#x4EEC;&#x9009;&#x7528;&#x7684;&#x662F; <a href="https://verdaccio.org/" target="_blank">verdaccio</a> &#xFF0C;&#x539F;&#x56E0;&#x7684;&#x8BDD;&#x5927;&#x81F4;&#x5982;&#x4E0B;&#xFF1A;</p>
<ul>
<li>&#x514D;&#x8D39;</li>
<li>&#x4ED6;&#x662F;&#x57FA;&#x4E8E; <code>Node.js</code> &#x5F00;&#x53D1;&#x7684;&#xFF0C;&#x73AF;&#x5883;&#x8981;&#x6C42;&#x8F83;&#x4E3A;&#x7B80;&#x5355;</li>
<li>&#x5B89;&#x88C5;&#x5BB9;&#x6613;&#x548C;&#x4F7F;&#x7528;&#x7B80;&#x5355;</li>
<li>&#x517C;&#x5BB9; <code>yarn</code>&#x3001;<code>npm</code> &#x7B49;&#x5DE5;&#x5177;</li>
</ul>
<h3 id="&#x786C;&#x6027;&#x8981;&#x6C42;"><a name="&#x786C;&#x6027;&#x8981;&#x6C42;" class="anchor-navigation-ex-anchor" href="#&#x786C;&#x6027;&#x8981;&#x6C42;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x786C;&#x6027;&#x8981;&#x6C42;</h3>
<p>&#x4E00;&#x53F0;&#x8FDC;&#x7A0B;&#x670D;&#x52A1;&#x5668;&#x6216;&#x672C;&#x5730;&#x7535;&#x8111;&#x3002;</p>
<h3 id="&#x5B89;&#x88C5;-node-&#x73AF;&#x5883;"><a name="&#x5B89;&#x88C5;-node-&#x73AF;&#x5883;" class="anchor-navigation-ex-anchor" href="#&#x5B89;&#x88C5;-node-&#x73AF;&#x5883;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5B89;&#x88C5; Node &#x73AF;&#x5883;</h3>
<p>&#x5B89;&#x88C5;&#x65B9;&#x5F0F;&#x53EF;&#x76F4;&#x63A5;&#x4E0B;&#x8F7D;&#x5B89;&#x88C5;&#x6216;&#x901A;&#x8FC7;&#x5305;&#x7BA1;&#x7406;&#x5668;&#x8FDB;&#x884C;&#x5B89;&#x88C5;&#xFF0C;&#x6B64;&#x5904;&#x4E0D;&#x505A;&#x8D58;&#x8FF0;&#x8BE6;&#x89C1;<a href="http://nodejs.cn/download/package-manager" target="_blank">&#x5B98;&#x65B9;&#x6587;&#x6863;</a>&#x3002;</p>
<blockquote>
<p>&#x6B64;&#x5904;&#x6CE8;&#x610F; <code>Node.js</code> &#x7248;&#x672C;&#x9700; &gt;= v12</p>
</blockquote>
<h3 id="&#x5B89;&#x88C5;-verdaccio"><a name="&#x5B89;&#x88C5;-verdaccio" class="anchor-navigation-ex-anchor" href="#&#x5B89;&#x88C5;-verdaccio"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5B89;&#x88C5; Verdaccio</h3>
<p>&#x63A8;&#x8350;&#x91C7;&#x7528;&#x5168;&#x5C40;&#x65B9;&#x5F0F;&#x5B89;&#x88C5;</p>
<pre><code class="lang-bash"><span class="hljs-comment"># npm</span>
$ npm install -g verdaccio

<span class="hljs-comment"># yarn</span>
$ yarn global add verdaccio
</code></pre>
<p>&#x5B89;&#x88C5;&#x5B8C;&#x6210;&#x540E;&#x53EF;&#x5148;&#x8FD0;&#x884C; <code>verdaccio</code> &#x547D;&#x4EE4;&#x67E5;&#x770B;&#x662F;&#x5426;&#x5B89;&#x88C5;&#x6210;&#x529F;</p>
<pre><code class="lang-bash">$&gt; verdaccio
warn --- config file  - /home/.config/verdaccio/config.yaml
warn --- http address - http://localhost:4873/ - verdaccio/5.10.0
</code></pre>
<blockquote>
<p>&#x6B64;&#x5904;&#x6253;&#x5370;&#x7684; config file &#x5373;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5730;&#x5740;</p>
</blockquote>
<p>&#x6D4F;&#x89C8;&#x5668;&#x8BBF;&#x95EE;<a href="http://localhost:4873/" target="_blank">http://localhost:4873/</a> &#x5373;&#x53EF;&#x67E5;&#x770B;&#x7BA1;&#x7406;&#x5305;&#x5217;&#x8868;&#x9875;&#x9762;</p>
<h3 id="&#x542F;&#x52A8;-verdaccio"><a name="&#x542F;&#x52A8;-verdaccio" class="anchor-navigation-ex-anchor" href="#&#x542F;&#x52A8;-verdaccio"><i class="fa fa-link" aria-hidden="true"></i></a>&#x542F;&#x52A8; <code>verdaccio</code></h3>
<p>&#x524D;&#x53F0;&#x542F;&#x52A8;&#x4F7F;&#x7528; <code>verdaccio</code> &#x547D;&#x4EE4;&#x5373;&#x53EF;&#xFF0C;&#x540E;&#x53F0;&#x542F;&#x52A8;&#x5EFA;&#x8BAE;&#x4F7F;&#x7528; <a href="https://pm2.keymetrics.io/" target="_blank">pm2</a> &#x6216;&#x5176;&#x4ED6;&#x8FDB;&#x7A0B;&#x4FDD;&#x62A4;&#x5DE5;&#x5177;&#x3002;</p>
<h3 id="&#x5B89;&#x88C5;-pm2"><a name="&#x5B89;&#x88C5;-pm2" class="anchor-navigation-ex-anchor" href="#&#x5B89;&#x88C5;-pm2"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5B89;&#x88C5; pm2</h3>
<pre><code class="lang-bash">$ npm install pm2 -g
<span class="hljs-comment"># or</span>
$ yarn global add pm2
</code></pre>
<p>&#x5B89;&#x88C5;&#x5B8C;&#x6210;&#x540E;&#x4F7F;&#x7528; <code>pm2</code> &#x542F;&#x52A8; <code>verdaccio</code></p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x4F7F;&#x7528; pm2 &#x542F;&#x52A8; verdaccio</span>
$ pm2 start verdaccio

<span class="hljs-comment"># &#x6216;&#x901A;&#x8FC7;&#x8DEF;&#x5F84;&#x542F;&#x52A8;</span>
$ pm2 start PATH-TO-GLOBAL-VERDACCIO/verdaccio

<span class="hljs-comment"># &#x67E5;&#x770B;&#x670D;&#x52A1;&#x72B6;&#x6001;</span>
$ pm2 status

<span class="hljs-comment"># &#x67E5;&#x770B; pm2 &#x5B88;&#x62A4;&#x4E0B;&#x7684;&#x8FDB;&#x7A0B; verdaccio &#x7684;&#x5B9E;&#x65F6;&#x65E5;&#x5FD7;</span>
$ pm2 show verdaccio
</code></pre>
<h3 id="&#x4F7F;&#x7528;&#x672C;&#x5730;&#x5E93;"><a name="&#x4F7F;&#x7528;&#x672C;&#x5730;&#x5E93;" class="anchor-navigation-ex-anchor" href="#&#x4F7F;&#x7528;&#x672C;&#x5730;&#x5E93;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F7F;&#x7528;&#x672C;&#x5730;&#x5E93;</h3>
<p><code>verdaccio</code> &#x670D;&#x52A1;&#x542F;&#x52A8;&#x5B8C;&#x6210;&#x540E;&#x53EF;&#x901A;&#x8FC7; <a href="https://www.npmjs.com/package/nrm" target="_blank">nrm</a> &#x5DE5;&#x5177;&#x8FDB;&#x884C;&#x6E90;&#x5730;&#x5740;&#x5207;&#x6362;</p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x5168;&#x5C40;&#x5B89;&#x88C5; nrm</span>
$ npm install -g nrm
</code></pre>
<p>&#x5B89;&#x88C5;&#x5B8C;&#x6210;&#x540E;&#x901A;&#x8FC7;&#x5982;&#x4E0B;&#x547D;&#x4EE4;&#x67E5;&#x770B;&#x5DF2;&#x6709;&#x914D;&#x7F6E;</p>
<pre><code class="lang-bash">$ nrm ls

* npm ---------- https://registry.npmjs.org/
  yarn --------- https://registry.yarnpkg.com/
  tencent ------ https://mirrors.cloud.tencent.com/npm/
  cnpm --------- https://r.cnpmjs.org/
  taobao ------- https://registry.npmmirror.com/
  npmMirror ---- https://skimdb.npmjs.com/registry/
</code></pre>
<p>&#x6DFB;&#x52A0;&#x672C;&#x5730;&#x5E93;&#x81F3; <code>nrm</code> &#x914D;&#x7F6E;&#x5217;&#x8868;</p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x6DFB;&#x52A0;&#x914D;&#x7F6E;&#x9879;</span>
nrm add <span class="hljs-built_in">local</span>Npm http://localhost:4873

<span class="hljs-comment"># &#x5207;&#x6362; npm &#x6E90;&#x81F3;&#x79C1;&#x5E93;</span>
nrm use <span class="hljs-built_in">local</span>Npm

<span class="hljs-comment"># &#x6DFB;&#x52A0;&#x73AF;&#x5883;&#x7528;&#x6237;&#x5E76;&#x6839;&#x636E;&#x63D0;&#x793A;&#x8F93;&#x5165;&#x7528;&#x6237;&#x540D;&#x5BC6;&#x7801;&#xFF0C;&#x4E3A;&#x540E;&#x7EED;&#x4F20;&#x5305;&#x505A;&#x51C6;&#x5907; &#xFF08;&#x91CD;&#x8981;&#xFF09;</span>
npm adduser --registry http://localhost:4873/
</code></pre>
<p>&#x81F3;&#x6B64;&#x7B80;&#x5355;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x5B8C;&#x6BD5;</p>
<blockquote>
<p><code>nrm</code> &#x4E3A;&#x4E2A;&#x4EBA;&#x8BA4;&#x4E3A;&#x6BD4;&#x8F83;&#x597D;&#x7528;&#x7684; <code>npm</code> &#x6E90;&#x7BA1;&#x7406;&#x5DE5;&#x5177;&#xFF0C;&#x4F7F;&#x7528;&#x8D77;&#x6765;&#x6BD4;&#x8F83;&#x65B9;&#x4FBF;&#xFF0C;&#x5F53;&#x7136;&#x4E5F;&#x53EF;&#x4EE5;&#x91C7;&#x7528;&#x76F4;&#x63A5;&#x914D;&#x7F6E;&#x6E90;&#x5730;&#x5740;&#x7684;&#x65B9;&#x5F0F;&#x8FDB;&#x884C;&#x914D;&#x7F6E;&#xFF0C;&#x547D;&#x4EE4;&#x4E3A; <code>npm set registry http://localhost:4873/</code> &#x6216;&#x5B89;&#x88C5;&#x65F6;&#x4F7F;&#x7528; <code>npm install --registry http://localhost:4873</code></p>
</blockquote>
<p>&#x53D1;&#x5E03;&#x5305;&#x5230;&#x79C1;&#x5E93;&#x53EF;&#x4F7F;&#x7528;&#x5982;&#x4E0B;&#x547D;&#x4EE4;</p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x76F4;&#x63A5;&#x53D1;&#x5E03;</span>
$ npm publish
<span class="hljs-comment"># &#x6216;&#x6307;&#x5B9A;&#x6E90;</span>
$ npm publish --registry http://localhost:4873
</code></pre>
<h3 id="&#x914D;&#x7F6E;-nginx-&#x4EE3;&#x7406;"><a name="&#x914D;&#x7F6E;-nginx-&#x4EE3;&#x7406;" class="anchor-navigation-ex-anchor" href="#&#x914D;&#x7F6E;-nginx-&#x4EE3;&#x7406;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x914D;&#x7F6E; Nginx &#x4EE3;&#x7406;</h3>
<p>nginx &#x914D;&#x7F6E;&#x53C2;&#x8003;&#x5982;&#x4E0B;</p>
<pre><code class="lang-yaml">server {
   listen       <span class="hljs-number">80</span>;
   server_name  verdaccio.zengqing.top;
   access_log /var/log/nginx/verdaccio.log;

   return <span class="hljs-number">302</span> https://$host$request_uri;
}

server {
    listen <span class="hljs-number">443</span> ssl;
    server_name verdaccio.zengqing.top;

    ssl_certificate     /etc/nginx/cert.crt;
    ssl_certificate_key /etc/nginx/cert.key;

    ssl on;
    ssl_session_cache  builtin:<span class="hljs-number">1000</span>  shared:SSL:<span class="hljs-number">10</span>m;
    ssl_protocols  TLSv1 TLSv1<span class="hljs-number">.1</span> TLSv1<span class="hljs-number">.2</span>;
    ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
    ssl_prefer_server_ciphers on;

    ssl_session_timeout <span class="hljs-number">5</span>m;

    location / {
        proxy_set_header    Host $host;
        proxy_set_header    X-Real-IP $remote_addr;
        proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header    X-Forwarded-Proto $scheme;
        proxy_pass          http://localhost:<span class="hljs-number">4873</span>;
        proxy_read_timeout  <span class="hljs-number">600</span>;
        proxy_redirect off;
        client_max_body_size <span class="hljs-number">200</span>m;
    }

    location ~ ^/verdaccio/(.*)$ {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
        proxy_set_header X-NginX-Proxy <span class="hljs-literal">true</span>;
        proxy_pass http://localhost:<span class="hljs-number">4873</span>/$<span class="hljs-number">1</span>;
        proxy_redirect off;
    }
}
</code></pre>
<blockquote>
<p>&#x901A;&#x8FC7; <code>Nginx</code> &#x53CD;&#x5411;&#x4EE3;&#x7406; <code>https</code> &#x540E;&#x5FC5;&#x987B;&#x6DFB;&#x52A0; <code>~ ^/verdaccio/(.*)$</code>  <code>location</code> &#x89E3;&#x6790;&#xFF0C;&#x5426;&#x5219;&#x53EF;&#x80FD;&#x4F1A;&#x5F71;&#x54CD; <code>web ui</code> &#x6B63;&#x5E38;&#x4F7F;&#x7528;</p>
</blockquote>
<p>&#x4E4B;&#x540E;&#x4FBF;&#x53EF;&#x5C06; <code>nrm</code> &#x914D;&#x7F6E;&#x9879;&#x4E2D;&#x7684;&#x5730;&#x5740;&#x5207;&#x6362;&#x4E3A;&#x914D;&#x7F6E;&#x597D;&#x7684;&#x57DF;&#x540D;</p>
<hr>
<h2 id="verdaccio-&#x8FDB;&#x9636;&#x4F7F;&#x7528;"><a name="verdaccio-&#x8FDB;&#x9636;&#x4F7F;&#x7528;" class="anchor-navigation-ex-anchor" href="#verdaccio-&#x8FDB;&#x9636;&#x4F7F;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>Verdaccio &#x8FDB;&#x9636;&#x4F7F;&#x7528;</h2>
<p>&#x901A;&#x8FC7;&#x4EE5;&#x4E0A;&#x914D;&#x7F6E;&#x540E;&#x57FA;&#x672C;&#x5DF2;&#x80FD;&#x591F;&#x5B9E;&#x73B0;&#x79C1;&#x5E93;&#x7684;&#x53D1;&#x5E03;&#x53CA;&#x6B63;&#x5E38;&#x4F7F;&#x7528;&#x4E86;&#xFF0C;&#x4F46;&#x76EE;&#x524D;&#x79C1;&#x5E93;&#x7684;&#x6743;&#x9650;&#x8FD8;&#x662F;&#x4E0D;&#x53EF;&#x63A7;&#x7684;&#xFF0C;&#x5373;&#x4EFB;&#x4F55;&#x6CE8;&#x518C;&#x7684;&#x7528;&#x6237;&#x90FD;&#x53EF;&#x4EE5;&#x8FDB;&#x884C;&#x53D1;&#x5305;&#x5220;&#x5305;&#x7684;&#x64CD;&#x4F5C;&#xFF0C;&#x5F88;&#x660E;&#x663E;&#x8FD9;&#x4E2A;&#x4E0D;&#x662F;&#x6211;&#x4EEC;&#x60F3;&#x8981;&#x7684;&#x72B6;&#x6001;&#xFF0C;&#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x8FD8;&#x9700;&#x8981;&#x5BF9;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8FDB;&#x884C;&#x8C03;&#x6574;&#xFF0C;&#x5C06;&#x6743;&#x9650;&#x7CFB;&#x7EDF;&#x63A7;&#x5236;&#x8D77;&#x6765;&#x3002;</p>
<h3 id="configyaml-&#x89E3;&#x8BFB;"><a name="configyaml-&#x89E3;&#x8BFB;" class="anchor-navigation-ex-anchor" href="#configyaml-&#x89E3;&#x8BFB;"><i class="fa fa-link" aria-hidden="true"></i></a>config.yaml &#x89E3;&#x8BFB;</h3>
<p>&#x521D;&#x59CB;&#x914D;&#x7F6E;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">storage:</span> ./storage
<span class="hljs-attr">plugins:</span> ./plugins

<span class="hljs-comment"># https://verdaccio.org/docs/webui</span>
<span class="hljs-attr">web:</span>
<span class="hljs-attr">  title:</span> Verdaccio

<span class="hljs-comment"># https://verdaccio.org/docs/configuration#authentication</span>
<span class="hljs-attr">auth:</span>
<span class="hljs-attr">  htpasswd:</span>
<span class="hljs-attr">    file:</span> ./htpasswd

<span class="hljs-comment"># https://verdaccio.org/docs/configuration#uplinks</span>
<span class="hljs-attr">uplinks:</span>
<span class="hljs-attr">  npmjs:</span>
<span class="hljs-attr">    url:</span> https://registry.npmjs.org/

<span class="hljs-comment"># https://verdaccio.org/docs/protect-your-dependencies/</span>
<span class="hljs-comment"># https://verdaccio.org/docs/configuration#packages</span>
<span class="hljs-attr">packages:</span>
  <span class="hljs-string">&apos;@*/*&apos;</span>:
    <span class="hljs-comment"># scoped packages</span>
<span class="hljs-attr">    access:</span> $all
<span class="hljs-attr">    publish:</span> $authenticated
<span class="hljs-attr">    unpublish:</span> $authenticated
<span class="hljs-attr">    proxy:</span> npmjs

  <span class="hljs-string">&apos;**&apos;</span>:
<span class="hljs-attr">    access:</span> $all
<span class="hljs-attr">    publish:</span> $authenticated
<span class="hljs-attr">    unpublish:</span> $authenticated
<span class="hljs-attr">    proxy:</span> npmjs

<span class="hljs-comment"># https://verdaccio.org/docs/configuration#server</span>
<span class="hljs-attr">server:</span>
<span class="hljs-attr">  keepAliveTimeout:</span> <span class="hljs-number">60</span>

<span class="hljs-comment"># https://verdaccio.org/docs/configuration#offline-publish</span>
<span class="hljs-comment"># publish:</span>
<span class="hljs-comment">#   allow_offline: false</span>

<span class="hljs-comment"># https://verdaccio.org/docs/configuration#url-prefix</span>
<span class="hljs-comment"># url_prefix: /verdaccio/</span>
<span class="hljs-comment"># VERDACCIO_PUBLIC_URL=&apos;https://somedomain.org&apos;;</span>
<span class="hljs-comment"># url_prefix: &apos;/my_prefix&apos;</span>
<span class="hljs-comment"># // url -&gt; https://somedomain.org/my_prefix/</span>
<span class="hljs-comment"># VERDACCIO_PUBLIC_URL=&apos;https://somedomain.org&apos;;</span>
<span class="hljs-comment"># url_prefix: &apos;/&apos;</span>
<span class="hljs-comment"># // url -&gt; https://somedomain.org/</span>
<span class="hljs-comment"># VERDACCIO_PUBLIC_URL=&apos;https://somedomain.org/first_prefix&apos;;</span>
<span class="hljs-comment"># url_prefix: &apos;/second_prefix&apos;</span>
<span class="hljs-comment"># // url -&gt; https://somedomain.org/second_prefix/&apos;</span>

<span class="hljs-comment"># https://verdaccio.org/docs/configuration#security</span>
<span class="hljs-comment"># security:</span>
<span class="hljs-comment">#   api:</span>
<span class="hljs-comment">#     legacy: true</span>
<span class="hljs-comment">#     jwt:</span>
<span class="hljs-comment">#       sign:</span>
<span class="hljs-comment">#         expiresIn: 29d</span>
<span class="hljs-comment">#       verify:</span>
<span class="hljs-comment">#         someProp: [value]</span>
<span class="hljs-comment">#    web:</span>
<span class="hljs-comment">#      sign:</span>
<span class="hljs-comment">#        expiresIn: 1h # 1 hour by default</span>
<span class="hljs-comment">#      verify:</span>
<span class="hljs-comment">#         someProp: [value]</span>

<span class="hljs-comment"># https://verdaccio.org/docs/configuration#user-rate-limit</span>
<span class="hljs-comment"># userRateLimit:</span>
<span class="hljs-comment">#   windowMs: 50000</span>
<span class="hljs-comment">#   max: 1000</span>

<span class="hljs-comment"># https://verdaccio.org/docs/configuration#max-body-size</span>
<span class="hljs-comment"># max_body_size: 10mb</span>

<span class="hljs-comment"># https://verdaccio.org/docs/configuration#listen-port</span>
<span class="hljs-comment"># listen:</span>
<span class="hljs-comment"># - localhost:4873            # default value</span>
<span class="hljs-comment"># - http://localhost:4873     # same thing</span>
<span class="hljs-comment"># - 0.0.0.0:4873              # listen on all addresses (INADDR_ANY)</span>
<span class="hljs-comment"># - https://example.org:4873  # if you want to use https</span>
<span class="hljs-comment"># - &quot;[::1]:4873&quot;                # ipv6</span>
<span class="hljs-comment"># - unix:/tmp/verdaccio.sock    # unix socket</span>

<span class="hljs-comment"># The HTTPS configuration is useful if you do not consider use a HTTP Proxy</span>
<span class="hljs-comment"># https://verdaccio.org/docs/configuration#https</span>
<span class="hljs-comment"># https:</span>
<span class="hljs-comment">#   key: ./path/verdaccio-key.pem</span>
<span class="hljs-comment">#   cert: ./path/verdaccio-cert.pem</span>
<span class="hljs-comment">#   ca: ./path/verdaccio-csr.pem</span>

<span class="hljs-comment"># https://verdaccio.org/docs/configuration#proxy</span>
<span class="hljs-comment"># http_proxy: http://something.local/</span>
<span class="hljs-comment"># https_proxy: https://something.local/</span>

<span class="hljs-comment"># https://verdaccio.org/docs/configuration#notifications</span>
<span class="hljs-comment"># notify:</span>
<span class="hljs-comment">#   method: POST</span>
<span class="hljs-comment">#   headers: [{ &quot;Content-Type&quot;: &quot;application/json&quot; }]</span>
<span class="hljs-comment">#   endpoint: https://usagge.hipchat.com/v2/room/3729485/notification?auth_token=mySecretToken</span>
<span class="hljs-comment">#   content: &apos;{&quot;color&quot;:&quot;green&quot;,&quot;message&quot;:&quot;New package published: * {{ name }}*&quot;,&quot;notify&quot;:true,&quot;message_format&quot;:&quot;text&quot;}&apos;</span>

<span class="hljs-attr">middlewares:</span>
<span class="hljs-attr">  audit:</span>
<span class="hljs-attr">    enabled:</span> <span class="hljs-literal">true</span>

<span class="hljs-comment"># https://verdaccio.org/docs/logger</span>
<span class="hljs-comment"># log settings</span>
<span class="hljs-attr">logs:</span> { type: stdout, format: pretty, level: http }
<span class="hljs-comment">#experiments:</span>
<span class="hljs-comment">#  # support for npm token command</span>
<span class="hljs-comment">#  token: false</span>
<span class="hljs-comment">#  # disable writing body size to logs, read more on ticket 1912</span>
<span class="hljs-comment">#  bytesin_off: false</span>
<span class="hljs-comment">#  # enable tarball URL redirect for hosting tarball with a different server, the tarball_url_redirect can be a template string</span>
<span class="hljs-comment">#  tarball_url_redirect: &apos;https://mycdn.com/verdaccio/${packageName}/${filename}&apos;</span>
<span class="hljs-comment">#  # the tarball_url_redirect can be a function, takes packageName and filename and returns the url, when working with a js configuration file</span>
<span class="hljs-comment">#  tarball_url_redirect(packageName, filename) {</span>
<span class="hljs-comment">#    const signedUrl = // generate a signed url</span>
<span class="hljs-comment">#    return signedUrl;</span>
<span class="hljs-comment">#  }</span>

<span class="hljs-comment"># translate your registry, api i18n not available yet</span>
<span class="hljs-comment"># i18n:</span>
<span class="hljs-comment"># list of the available translations https://github.com/verdaccio/verdaccio/blob/master/packages/plugins/ui-theme/src/i18n/ABOUT_TRANSLATIONS.md</span>
<span class="hljs-comment">#   web: en-US</span>
</code></pre>
<h4 id="storage"><a name="storage" class="anchor-navigation-ex-anchor" href="#storage"><i class="fa fa-link" aria-hidden="true"></i></a>storage</h4>
<p>&#x5305;&#x6587;&#x4EF6;&#x5B58;&#x50A8;&#x76EE;&#x5F55;&#xFF0C;&#x4E0A;&#x4F20;&#x7684;&#x5305;&#x5B58;&#x653E;&#x7684;&#x4F4D;&#x7F6E;</p>
<h4 id="plugins"><a name="plugins" class="anchor-navigation-ex-anchor" href="#plugins"><i class="fa fa-link" aria-hidden="true"></i></a>plugins</h4>
<p>&#x63D2;&#x4EF6;&#x76EE;&#x5F55;&#x4F4D;&#x7F6E;&#xFF0C;&#x9002;&#x7528;&#x4E8E;&#x57FA;&#x4E8E; <code>Docker</code>/<code>Kubernetes</code> &#x7684;&#x90E8;&#x7F72;&#x3002;</p>
<h4 id="web"><a name="web" class="anchor-navigation-ex-anchor" href="#web"><i class="fa fa-link" aria-hidden="true"></i></a>web</h4>
<p>Web &#x754C;&#x9762;&#x914D;&#x7F6E;&#x3002;&#x8BE6;&#x89C1;<a href="https://verdaccio.org/docs/webui/" target="_blank">&#x5B98;&#x65B9;&#x6587;&#x6863;</a></p>
<h4 id="auth"><a name="auth" class="anchor-navigation-ex-anchor" href="#auth"><i class="fa fa-link" aria-hidden="true"></i></a>auth</h4>
<p>&#x8BA4;&#x8BC1;&#x76F8;&#x5173;&#x914D;&#x7F6E;&#x9879;&#xFF0C;&#x9ED8;&#x8BA4;&#x7684;&#x6388;&#x6743;&#x65B9;&#x5F0F;&#x662F; <code>htpasswd</code>, &#x53EF;&#x4EE5;&#x901A;&#x8FC7; <code>plugins</code> &#x8FDB;&#x884C;&#x4FEE;&#x6539;&#x3002;&#x8BE6;&#x89C1;<a href="https://verdaccio.org/docs/authentication/" target="_blank">&#x5B98;&#x65B9;&#x6587;&#x6863;</a></p>
<h4 id="uplinks"><a name="uplinks" class="anchor-navigation-ex-anchor" href="#uplinks"><i class="fa fa-link" aria-hidden="true"></i></a>uplinks</h4>
<p>&#x914D;&#x7F6E;&#x4E0A;&#x6E38;&#x4ED3;&#x5E93;&#x914D;&#x7F6E;&#x7528;&#x6765;&#x62C9;&#x53D6;&#x672C;&#x5730;&#x4E0D;&#x5B58;&#x5728;&#x7684;&#x5305;&#xFF0C;&#x53EF;&#x4EE5;&#x7406;&#x89E3;&#x4E3A;&#x914D;&#x7F6E;&#x8FDC;&#x7A0B;&#x6CE8;&#x518C;&#x4E2D;&#x5FC3;&#x7684;&#x4EE3;&#x7406;&#xFF0C;&#x901A;&#x5E38;&#x8FD9;&#x91CC;&#x53EF;&#x914D;&#x7F6E; <code>npm</code> &#x5730;&#x5740;&#x6216; &#x6DD8;&#x5B9D;&#x955C;&#x50CF;&#x5730;&#x5740;&#x3002;&#x8BE6;&#x89C1;<a href="https://verdaccio.org/docs/uplinks/" target="_blank">&#x5B98;&#x65B9;&#x6587;&#x6863;</a></p>
<pre><code class="lang-yaml"><span class="hljs-attr">uplinks:</span>
<span class="hljs-attr">  npmjs:</span>
<span class="hljs-attr">    url:</span> https://registry.npmjs.org/
</code></pre>
<h4 id="packages"><a name="packages" class="anchor-navigation-ex-anchor" href="#packages"><i class="fa fa-link" aria-hidden="true"></i></a>packages</h4>
<p>&#x914D;&#x7F6E;&#x8BBF;&#x95EE;&#x5305;&#x7684;&#x6743;&#x9650;&#x3002; &#x8BE6;&#x89C1;<a href="https://verdaccio.org/docs/packages/" target="_blank">&#x5B98;&#x65B9;&#x6587;&#x6863;</a>&#x3002;</p>
<p>&#x53C2;&#x6570;&#x89E3;&#x8BFB;&#xFF1A;</p>
<ul>
<li><code>access</code> : &#x54EA;&#x7C7B;&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x5BF9;&#x5339;&#x914D;&#x7684;&#x9879;&#x76EE;&#x8FDB;&#x884C;&#x5B89;&#x88C5;&#x64CD;&#x4F5C;( <code>install</code> )</li>
<li><code>publish</code> : &#x54EA;&#x7C7B;&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x5BF9;&#x5339;&#x914D;&#x7684;&#x9879;&#x76EE;&#x8FDB;&#x884C;&#x53D1;&#x5E03;&#x64CD;&#x4F5C;( <code>publish</code> )</li>
<li><code>unpublish</code> : &#x54EA;&#x7C7B;&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x5BF9;&#x5339;&#x914D;&#x7684;&#x9879;&#x76EE;&#x8FDB;&#x884C;&#x5220;&#x9664;&#x64CD;&#x4F5C;( <code>publish</code> )</li>
<li><code>proxy</code> : &#x4EE3;&#x7406;&#x9879;&#xFF0C;&#x8FD9;&#x91CC;&#x7684;&#x503C;&#x662F;&#x5BF9;&#x5E94;&#x4E8E; <code>uplinks</code> &#x7684;&#x540D;&#x79F0;&#xFF0C;&#x5982;&#x679C;&#x672C;&#x5730;&#x4E0D;&#x5B58;&#x5728;&#xFF0C;&#x5141;&#x8BB8;&#x53BB;&#x5BF9;&#x5E94;&#x7684; <code>uplinks</code> &#x914D;&#x7F6E;&#x5730;&#x5740;&#x62C9;&#x53D6;</li>
</ul>
<p>&#x6743;&#x9650;&#x503C;&#x89E3;&#x8BFB;&#xFF1A;</p>
<ul>
<li><code>$all</code> : &#x6240;&#x6709;&#x4EBA;(&#x5DF2;&#x6CE8;&#x518C;&#x3001;&#x672A;&#x6CE8;&#x518C;)&#x90FD;&#x53EF;&#x4EE5;&#x6267;&#x884C;&#x5BF9;&#x5E94;&#x7684;&#x64CD;&#x4F5C;&#x3002;</li>
<li><code>$authenticated</code> : &#x901A;&#x8FC7;&#x9A8C;&#x8BC1;&#x7684;&#x4EBA;(&#x5DF2;&#x6CE8;&#x518C;)&#x53EF;&#x4EE5;&#x6267;&#x884C;&#x5BF9;&#x5E94;&#x64CD;&#x4F5C;&#x3002;</li>
<li><code>$anonymous</code> : &#x8868;&#x793A;&#x533F;&#x540D;&#x8005;&#x53EF;&#x4EE5;&#x8FDB;&#x884C;&#x5BF9;&#x5E94;&#x64CD;&#x4F5C;&#x3002;</li>
</ul>
<blockquote>
<p>&#x914D;&#x7F6E;&#x6743;&#x9650;&#x4E3A; <code>$authenticated</code> &#x65F6;&#x9700;&#x6CE8;&#x610F;&#xFF0C;&#x5982;&#x679C; <code>auth</code> &#x672A;&#x914D;&#x7F6E; <code>max_users: -1</code> &#x65F6;&#x4EFB;&#x4F55;&#x4EBA;&#x5747;&#x53EF;&#x6CE8;&#x518C;&#x8D26;&#x53F7;<br>&#x82E5;&#x60F3;&#x8981;&#x5C06;&#x6743;&#x9650;&#x6307;&#x5B9A;&#x5230;&#x6307;&#x5B9A;&#x7684;&#x4EBA;&#x7684;&#x8D26;&#x6237;&#x6B64;&#x5904;&#x53EF;&#x76F4;&#x63A5;&#x586B;&#x5BF9;&#x5E94;&#x8D26;&#x6237;&#x540D;&#xFF0C;&#x591A;&#x4E2A;&#x4F7F;&#x7528; &#x7A7A;&#x683C; &#x5206;&#x9694;&#xFF0C;&#x5982;&#xFF1A;<code>publish: admin xiaochen</code></p>
</blockquote>
<pre><code class="lang-yaml"><span class="hljs-attr">packages:</span>
  <span class="hljs-string">&apos;@*/*&apos;</span>:
<span class="hljs-attr">    access:</span> $all
<span class="hljs-attr">    publish:</span> $authenticated
<span class="hljs-attr">    unpublish:</span> $authenticated
<span class="hljs-attr">    proxy:</span> npmjs

  <span class="hljs-string">&apos;**&apos;</span>:
<span class="hljs-attr">    access:</span> $all
<span class="hljs-attr">    publish:</span> $authenticated
<span class="hljs-attr">    unpublish:</span> $authenticated
<span class="hljs-attr">    proxy:</span> npmjs
</code></pre>
<h4 id="server"><a name="server" class="anchor-navigation-ex-anchor" href="#server"><i class="fa fa-link" aria-hidden="true"></i></a>server</h4>
<p>&#x914D;&#x7F6E;&#x670D;&#x52A1;&#x914D;&#x7F6E;&#x9879;&#xFF08;Express.js&#xFF09;&#x3002;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">server:</span>
<span class="hljs-attr">  keepAliveTimeout:</span> <span class="hljs-number">60</span>
</code></pre>
<h4 id="publish"><a name="publish" class="anchor-navigation-ex-anchor" href="#publish"><i class="fa fa-link" aria-hidden="true"></i></a>publish</h4>
<p>&#x914D;&#x7F6E;&#x662F;&#x5426;&#x652F;&#x6301;&#x79BB;&#x7EBF;&#x53D1;&#x5E03;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E0D;&#x652F;&#x6301;&#x3002;</p>
<h4 id="urlprefix"><a name="urlprefix" class="anchor-navigation-ex-anchor" href="#urlprefix"><i class="fa fa-link" aria-hidden="true"></i></a>url_prefix</h4>
<p>&#x914D;&#x7F6E;&#x670D;&#x52A1;&#x53CD;&#x5411;&#x4EE3;&#x7406;&#x7684;&#x8DEF;&#x5F84;</p>
<h4 id="security"><a name="security" class="anchor-navigation-ex-anchor" href="#security"><i class="fa fa-link" aria-hidden="true"></i></a>security</h4>
<p>&#x914D;&#x7F6E;&#x7528;&#x6237;&#x9274;&#x6743;&#x65B9;&#x5F0F;&#xFF0C;&#x9ED8;&#x8BA4;&#x4F7F;&#x7528; <code>JWT</code> &#x65B9;&#x5F0F;&#x3002;</p>
<blockquote>
<p>&#x6B64;&#x914D;&#x7F6E;&#x9700; <code>api</code> &#x4E0E; <code>web</code> &#x5206;&#x522B;&#x914D;&#x7F6E;&#xFF0C;&#x5982;&#x4E0B;</p>
</blockquote>
<pre><code class="lang-yaml"><span class="hljs-attr">security:</span>
<span class="hljs-attr">  api:</span>
<span class="hljs-attr">    legacy:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">    jwt:</span>
<span class="hljs-attr">      sign:</span>
<span class="hljs-attr">        expiresIn:</span> <span class="hljs-number">29</span>d
<span class="hljs-attr">      verify:</span>
<span class="hljs-attr">        someProp:</span> [value]
<span class="hljs-attr">   web:</span>
<span class="hljs-attr">     sign:</span>
<span class="hljs-attr">       expiresIn:</span> <span class="hljs-number">1</span>h <span class="hljs-comment"># 1 hour by default</span>
<span class="hljs-attr">     verify:</span>
<span class="hljs-attr">        someProp:</span> [value]
</code></pre>
<h4 id="userratelimit"><a name="userratelimit" class="anchor-navigation-ex-anchor" href="#userratelimit"><i class="fa fa-link" aria-hidden="true"></i></a>userRateLimit</h4>
<p>&#x914D;&#x7F6E;&#x7528;&#x6237;&#x7AEF;&#x70B9;&#x7684;&#x9ED8;&#x8BA4;&#x901F;&#x7387;&#x914D;&#x7F6E;</p>
<pre><code class="lang-yaml"><span class="hljs-comment"># userRateLimit:</span>
<span class="hljs-comment">#   windowMs: 50000</span>
<span class="hljs-comment">#   max: 1000</span>
</code></pre>
<h4 id="maxbodysize"><a name="maxbodysize" class="anchor-navigation-ex-anchor" href="#maxbodysize"><i class="fa fa-link" aria-hidden="true"></i></a>max_body_size</h4>
<p>&#x914D;&#x7F6E;&#x4E0A;&#x4F20;&#x5305;&#x7684;&#x5927;&#x5C0F;&#x9650;&#x5236;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A; <code>10mb</code>&#xFF0C;&#x53EF;&#x6839;&#x636E;&#x81EA;&#x5DF1;&#x9700;&#x6C42;&#x8C03;&#x5927;&#x3002;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">max_body_size:</span> <span class="hljs-number">100</span>mb
</code></pre>
<h4 id="listen"><a name="listen" class="anchor-navigation-ex-anchor" href="#listen"><i class="fa fa-link" aria-hidden="true"></i></a>listen</h4>
<p>&#x670D;&#x52A1;&#x8FD0;&#x884C;&#x7684;&#x7AEF;&#x53E3;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A; <code>localhost:4873</code>&#xFF0C;&#x53EF;&#x6839;&#x636E;&#x81EA;&#x5DF1;&#x9700;&#x6C42;&#x8C03;&#x6574;&#xFF0C;&#x683C;&#x5F0F;&#x5982;&#x4E0B;&#x3002;</p>
<pre><code class="lang-yaml"><span class="hljs-comment"># listen:</span>
<span class="hljs-comment"># - localhost:4873            # default value</span>
<span class="hljs-comment"># - http://localhost:4873     # same thing</span>
<span class="hljs-comment"># - 0.0.0.0:4873              # listen on all addresses (INADDR_ANY)</span>
<span class="hljs-comment"># - https://example.org:4873  # if you want to use https</span>
<span class="hljs-comment"># - &quot;[::1]:4873&quot;              # ipv6</span>
<span class="hljs-comment"># - unix:/tmp/verdaccio.sock  # unix socket</span>
</code></pre>
<h4 id="https"><a name="https" class="anchor-navigation-ex-anchor" href="#https"><i class="fa fa-link" aria-hidden="true"></i></a>https</h4>
<p>&#x914D;&#x7F6E; <code>Https</code> &#x8BC1;&#x4E66;&#xFF0C;&#x8BE6;&#x89C1;<a href="https://verdaccio.org/docs/ssl/" target="_blank">&#x5B98;&#x65B9;&#x6587;&#x6863;</a></p>
<pre><code class="lang-yaml"><span class="hljs-comment"># https:</span>
<span class="hljs-comment">#   key: ./path/verdaccio-key.pem</span>
<span class="hljs-comment">#   cert: ./path/verdaccio-cert.pem</span>
<span class="hljs-comment">#   ca: ./path/verdaccio-csr.pem</span>
</code></pre>
<h4 id="httpproxy-httpsproxy"><a name="httpproxy-httpsproxy" class="anchor-navigation-ex-anchor" href="#httpproxy-httpsproxy"><i class="fa fa-link" aria-hidden="true"></i></a>http_proxy, https_proxy</h4>
<p>&#x914D;&#x7F6E;&#x4EE3;&#x7406;&#x5730;&#x5740;</p>
<pre><code class="lang-yaml"><span class="hljs-comment"># http_proxy: http://something.local/</span>
<span class="hljs-comment"># https_proxy: https://something.local/</span>
</code></pre>
<h4 id="notify"><a name="notify" class="anchor-navigation-ex-anchor" href="#notify"><i class="fa fa-link" aria-hidden="true"></i></a>notify</h4>
<p>&#x914D;&#x7F6E;&#x901A;&#x77E5;&#x3002;&#x8BE6;&#x89C1;<a href="https://verdaccio.org/docs/notifications/" target="_blank">&#x5B98;&#x65B9;&#x6587;&#x6863;</a></p>
<pre><code class="lang-yaml"><span class="hljs-comment"># notify:</span>
<span class="hljs-comment">#   method: POST</span>
<span class="hljs-comment">#   headers: [{ &quot;Content-Type&quot;: &quot;application/json&quot; }]</span>
<span class="hljs-comment">#   endpoint: https://usagge.hipchat.com/v2/room/3729485/notification?auth_token=mySecretToken</span>
<span class="hljs-comment">#   content: &apos;{&quot;color&quot;:&quot;green&quot;,&quot;message&quot;:&quot;New package published: * {{ name }}*&quot;,&quot;notify&quot;:true,&quot;message_format&quot;:&quot;text&quot;}&apos;</span>
</code></pre>
<h4 id="middlewares"><a name="middlewares" class="anchor-navigation-ex-anchor" href="#middlewares"><i class="fa fa-link" aria-hidden="true"></i></a>middlewares</h4>
<p>&#x914D;&#x7F6E;&#x4E2D;&#x95F4;&#x4EF6;&#x3002;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">middlewares:</span>
<span class="hljs-attr">  audit:</span>
<span class="hljs-attr">    enabled:</span> <span class="hljs-literal">true</span>
</code></pre>
<h4 id="logs"><a name="logs" class="anchor-navigation-ex-anchor" href="#logs"><i class="fa fa-link" aria-hidden="true"></i></a>logs</h4>
<p>&#x914D;&#x7F6E; <code>Logger</code>&#x3002;&#x8BE6;&#x89C1;<a href="https://verdaccio.org/docs/logger" target="_blank">&#x5B98;&#x65B9;&#x6587;&#x6863;</a></p>
<pre><code class="lang-yaml"><span class="hljs-attr">logs:</span> { type: stdout, format: pretty, level: http }
</code></pre>
<h4 id="experiments"><a name="experiments" class="anchor-navigation-ex-anchor" href="#experiments"><i class="fa fa-link" aria-hidden="true"></i></a>experiments</h4>
<pre><code class="lang-yaml"><span class="hljs-comment">#experiments:</span>
<span class="hljs-comment">#  # support for npm token command</span>
<span class="hljs-comment">#  token: false</span>
<span class="hljs-comment">#  # disable writing body size to logs, read more on ticket 1912</span>
<span class="hljs-comment">#  bytesin_off: false</span>
<span class="hljs-comment">#  # enable tarball URL redirect for hosting tarball with a different server, the tarball_url_redirect can be a template string</span>
<span class="hljs-comment">#  tarball_url_redirect: &apos;https://mycdn.com/verdaccio/${packageName}/${filename}&apos;</span>
<span class="hljs-comment">#  # the tarball_url_redirect can be a function, takes packageName and filename and returns the url, when working with a js configuration file</span>
<span class="hljs-comment">#  tarball_url_redirect(packageName, filename) {</span>
<span class="hljs-comment">#    const signedUrl = // generate a signed url</span>
<span class="hljs-comment">#    return signedUrl;</span>
<span class="hljs-comment">#  }</span>
</code></pre>
<h4 id="i18n"><a name="i18n" class="anchor-navigation-ex-anchor" href="#i18n"><i class="fa fa-link" aria-hidden="true"></i></a>i18n</h4>
<pre><code class="lang-yaml"><span class="hljs-comment"># i18n:</span>
<span class="hljs-comment"># list of the available translations https://github.com/verdaccio/verdaccio/blob/master/packages/plugins/ui-theme/src/i18n/ABOUT_TRANSLATIONS.md</span>
<span class="hljs-comment">#   web: en-US</span>
</code></pre>
<h3 id="&#x914D;&#x7F6E;&#x4FEE;&#x6539;"><a name="&#x914D;&#x7F6E;&#x4FEE;&#x6539;" class="anchor-navigation-ex-anchor" href="#&#x914D;&#x7F6E;&#x4FEE;&#x6539;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x914D;&#x7F6E;&#x4FEE;&#x6539;</h3>
<p>&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5730;&#x5740;</p>
<ul>
<li><code>Windows</code> : <code>C:\&#x7528;&#x6237;\&#x5F53;&#x524D;&#x7528;&#x6237;\AppData\Roaming\verdaccio\config.yaml</code></li>
<li><code>Linux</code> : <code>/home/.config/verdaccio/config.yaml</code></li>
</ul>
<blockquote>
<p>&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5730;&#x5740;&#x53EF;&#x901A;&#x8FC7;&#x8FD0;&#x884C; <code>verdaccio</code> &#x547D;&#x4EE4;&#x67E5;&#x770B;</p>
</blockquote>
<pre><code class="lang-yaml"><span class="hljs-comment"># config.yaml</span>
<span class="hljs-attr">storage:</span> ./storage
<span class="hljs-attr">plugins:</span> ./plugins

<span class="hljs-attr">web:</span>
<span class="hljs-attr">  title:</span> Verdaccio

<span class="hljs-attr">auth:</span>
<span class="hljs-attr">  htpasswd:</span>
<span class="hljs-attr">    file:</span> ./htpasswd
    <span class="hljs-comment"># &#x7981;&#x6B62;&#x7528;&#x6237;&#x81EA;&#x884C;&#x6CE8;&#x518C;&#xFF0C;&#x901A;&#x8FC7; https://hostingcanada.org/htpasswd-generator/ &#x624B;&#x52A8;&#x521B;&#x5EFA;&#x7528;&#x6237;&#x5E76;&#x5199;&#x5165; htpasswd &#x6587;&#x4EF6;</span>
<span class="hljs-attr">    max_users:</span> <span class="hljs-bullet">-1</span>

<span class="hljs-attr">uplinks:</span>
  <span class="hljs-comment"># &#x4E0A;&#x6E38;&#x914D;&#x7F6E; npm</span>
<span class="hljs-attr">  npmjs:</span>
<span class="hljs-attr">    url:</span> https://registry.npmjs.org/

<span class="hljs-attr">packages:</span>
  <span class="hljs-string">&apos;@*/*&apos;</span>:
<span class="hljs-attr">    access:</span> $all
<span class="hljs-attr">    publish:</span> $authenticated
<span class="hljs-attr">    unpublish:</span> $authenticated
<span class="hljs-attr">    proxy:</span> npmjs
  <span class="hljs-string">&apos;**&apos;</span>:
<span class="hljs-attr">    access:</span> $all
<span class="hljs-attr">    publish:</span> $authenticated
<span class="hljs-attr">    unpublish:</span> $authenticated
<span class="hljs-attr">    proxy:</span> npmjs

<span class="hljs-attr">server:</span>
<span class="hljs-attr">  keepAliveTimeout:</span> <span class="hljs-number">60</span>

<span class="hljs-attr">publish:</span>
<span class="hljs-attr">  allow_offline:</span> <span class="hljs-literal">true</span>

<span class="hljs-comment"># &#x8C03;&#x6574;&#x4E0A;&#x4F20;&#x5305;&#x4E0A;&#x9650;&#x5927;&#x5C0F;&#x4E3A; 100M</span>
<span class="hljs-attr">max_body_size:</span> <span class="hljs-number">100</span>mb

<span class="hljs-comment"># &#x4FEE;&#x6539;&#x670D;&#x52A1;&#x542F;&#x52A8;&#x7AEF;&#x53E3; &#x6B64;&#x5904;&#x53EF;&#x4E0D;&#x4FEE;&#x6539;&#xFF08;&#x82E5;&#x5728;&#x672C;&#x5730;&#x7535;&#x8111;&#x5B89;&#x88C5;&#x65F6;&#x5EFA;&#x8BAE;&#x4FEE;&#x6539;&#xFF09;</span>
<span class="hljs-comment"># listen: 0.0.0.0:4873</span>

<span class="hljs-attr">middlewares:</span>
<span class="hljs-attr">  audit:</span>
<span class="hljs-attr">    enabled:</span> <span class="hljs-literal">true</span>

<span class="hljs-attr">logs:</span> { type: stdout, format: pretty, level: http }

<span class="hljs-attr">i18n:</span>
  <span class="hljs-comment"># &#x4FEE;&#x6539;&#x9ED8;&#x8BA4;&#x4E2D;&#x6587;&#x5C55;&#x793A;</span>
<span class="hljs-attr">  web:</span> zh-CN
</code></pre>
<p>&#x4FEE;&#x6539;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x540E;&#x91CD;&#x542F; <code>verdaccio</code> &#x670D;&#x52A1;</p>
<pre><code class="lang-bash">$ pm2 restart verdaccio
</code></pre>
<blockquote>
<p>&#x6B64;&#x5904;&#x914D;&#x7F6E;&#x4E86;&#x7528;&#x6237;&#x4E0D;&#x53EF;&#x81EA;&#x884C;&#x521B;&#x5EFA;&#x8D26;&#x53F7;&#xFF0C;&#x9700;&#x7BA1;&#x7406;&#x5458;&#x901A;&#x8FC7; <a href="https://hostingcanada.org/htpasswd-generator/" target="_blank">htpasswd-generator</a> &#x5DE5;&#x5177;&#x624B;&#x52A8;&#x521B;&#x5EFA;&#x8D26;&#x53F7;&#x5E76;&#x5199;&#x5165; <code>htpasswd</code> &#x6587;&#x4EF6;</p>
</blockquote>
<p>&#x66F4;&#x591A;&#x6587;&#x7AE0;&#x53EF;&#x67E5;&#x770B; <a href="http://zengqing.top" target="_blank">&#x6211;&#x7684;&#x535A;&#x5BA2;</a> </p>
<footer class="page-footer"><span class="copyright">Copyright &amp; copy zengqing.top 2023 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x66F4;&#x65B0;&#x4E8E;&#xFF1A;
2022-09-19 14:17:03
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Web前端开发规范.html" class="navigation navigation-prev " aria-label="Previous page: 开发规范">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Web团队建设--自定义脚手架.html" class="navigation navigation-next " aria-label="Next page: 脚手架搭建">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"私库搭建","level":"9.2","depth":1,"next":{"title":"脚手架搭建","level":"9.3","depth":1,"path":"Team/Web团队建设--自定义脚手架.md","ref":"./Team/Web团队建设--自定义脚手架.md","articles":[]},"previous":{"title":"开发规范","level":"9.1","depth":1,"path":"Team/Web前端开发规范.md","ref":"./Team/Web前端开发规范.md","articles":[]},"dir":"ltr"},"config":{"plugins":["expandable-chapters","code","pageview-count","chapter-fold","expandable-chapters-small","tbfed-pagefooter","hide-element","ancre-navigation"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright & copy zengqing.top 2023","modify_label":"该文件更新于：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"ancre-navigation":{"showLevel":true,"associatedWithSummary":true,"mode":"float","printLog":false,"multipleH1":true,"float":{"showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""},"pageTop":{"showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""}},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"XiaoChen","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"《前端学习笔记》","language":"zh-hans","gitbook":"*","description":"个人学习笔记，记录学习过程中的点点滴滴"},"file":{"path":"Team/Web团队建设--npm私库搭建.md","mtime":"2022-09-19T06:17:03.049Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-03-26T04:06:26.355Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

